

#ifndef _SHELL_RESMSG_MESSAGE_H_
#define _SHELL_RESMSG_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include <vector>
using namespace std;

class ResMsgMessage : public Message
{
	public:
	ResMsgMessage();
	~ResMsgMessage();
	void reset();
	ResMsgMessage* clone();
	static const int _ID;
	//发送消息的玩家id
	int64 playerId;
	//头像id
	int32 headId;
	//战斗力
	int32 force;
	//等级
	int16 lv;
	//消息类型1.个人。2世界。3.帮派
	int8 msgType;
	//玩家名字
	std::string playerName;
	//消息内容
	std::string msgContent;
	//称号id
	vector<int16> titleId;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
